import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";

const routers: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    component: () => import("@/views/Home.vue"),
  },
  {
    path: "/professional",
    component: () => import("@/views/Professional.vue"),
  },
  {
    path: "/recruitapply",
    component: () => import("@/views/recruitapply.vue"),
  },
  {
    path: "/recruitapplys",
    component: () => import("@/views/recruitapplys.vue"),
  },
 


 
  // {
  //   path: "/test",
  //   component: () => import("@/views/Test.vue"),
  // },
  {
    path: "/dummy",
    component: () => import("@/views/Dummy.vue"),
  },
  {
    path: "/UserCenter",
    component: () => import("@/views/UserCenter.vue"),
  },
  {
    path: "/JgCenter",
    component: () => import("@/views/JgCenter.vue"),
  },
  {
    path: "/HospitalCenter",
    component: () => import("@/views/HospitalCenter.vue"),
  },
  
  {
    path: "/community-service",
    component: () => import("@/views/CommunityService.vue"),
  },
  {
    path: "/article",
    component: () => import("@/views/article.vue"),
  },
  {
    path: "/Notice",
    component: () => import("@/views/Notice.vue"),
  },
  {
    path: "/recruit",
    component: () => import("@/views/recruit.vue"),
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes: routers,
});

export default router;